# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-validate-email
_pkgname=validate_email
pkgver=1.3
pkgrel=5
pkgdesc='Verify if an email address is valid and really exists.'
url='https://pypi.org/project/validate-email/#files'
arch=('any')
license=('LGPL')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('77abb9797c59e9aee20368814373191dac3749938d31402ec56d447a118849b391f7291642d1b028d32fc19bad465c5e6a3785af6651d6d64728db884f75a0c9')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

